//
//  RJNavigationBar.h
//  导航栏滚动显示与隐藏
//
//  Created by XinHuiOS on 2019/8/13.
//  Copyright © 2019 XinHuiOS. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface RJNavigationBar : UIView

/**
 自定义的按钮点击事件
 */
@property (nonatomic, copy)void(^clickleftItemBlock)(void);
@property (nonatomic, copy)void(^clickrightItemBlock)(void);
/**
 自定义标题和颜色 背景图
 */
@property (nonatomic, copy)NSString * title;
@property (nonatomic, strong)UIColor * titleColor;
@property (nonatomic, strong)UIColor * navBackgroundColor;
@property (nonatomic, strong)UIImage * navBackgroundImage;

//初始化
+(instancetype)createCustomNavigationBar;
//显示与隐藏
-(void)showCustomNavigationBar:(BOOL)show;
/*！
 设置背景图的透明度
 */
-(void)setupBgImageAlpha:(CGFloat)alpha animation:(NSTimeInterval)duration  compeleteBlock:(void(^)(void))compeleteBlock;
/*！
 设置背景色的透明度
 */
-(void)setupBgColorAlpha:(CGFloat)alpha animation:(NSTimeInterval)duration compeleteBlock:(void(^)(void))compeleteBlock;
/*！
 配置左边按钮
 */
-(void)setLeftItemImage:(NSString *)imgName leftItemTitle:(NSString *)leftItemtitle textColor:(UIColor *)color;
/*！
 配置右边按钮
 */
-(void)setRightItemImage:(NSString *)imgName RightItemTitle:(NSString *)rightItemtitle textColor:(UIColor *)color;

/*！
 配置左边按钮图片
 */
-(void)setLeftItemImage:(NSString *)imgName;
/*！
 配置右边按钮图片
 */
-(void)setRightItemImage:(NSString *)imgName;

@end

NS_ASSUME_NONNULL_END
